<%@ page language = "Java" import = "java.io.*, java.util.*" 
pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" errorPage="error/errorpage.jsp"%>
<%@ page import="beans.BeanLugares" 
		 import="utils.GeneradorXML"
		 import="mapping.ElementoMapa"
		 import="mapping.LugarInteres"%>
<jsp:useBean id="mybean" class="beans.BeanLugares"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="stylesheet" href="estilos/galeria.css" type="text/css" media="screen" charset="utf-8"/>
  <link rel="stylesheet" href="estilos/style.css" type="text/css" media="screen" charset="utf-8"/>
  
  <script src ="ajax/scriptaculous-js-1.8.1/lib/prototype.js" type="text/javascript" charset="utf-8"></script>
  <script src ="ajax/scriptaculous-js-1.8.1/src/effects.js" type="text/javascript" charset="utf-8"></script>
  <script src ="ajax/scriptaculous-js-1.8.1/src/controls.js" type="text/javascript" charset="utf-8"></script>
  <script src ="ajax/scriptaculous-js-1.8.1/src/slider.js" type="text/javascript" charset="utf-8"></script>
   <script src="http://www.google.com/jsapi?key=ABQIAAAAW6ZkayH6hhgMyC2y6LQx8xQkRs_WW3LuT_BxsclnnM2SXBs4HxSp2Ukg-tY3gZU6rw7kePxNiNAS9Q" type="text/javascript"></script>
   <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAW6ZkayH6hhgMyC2y6LQx8xTlOAjHTmgj9z0QOzdQFV7VnifGuxSJsOzr3eQromRGXbLCHJKjeEnNNw" type="text/javascript"></script> 
   <script src="js/googlemaps.js" type="text/javascript" charset="utf-8">
   </script> 
   <script src="ajax/ajax_lugares.js" type="text/javascript" charset="utf-8"></script>
   <script src="ajax/ajax_login.js" type="text/javascript" charset="utf-8"></script>
   <script src="js/menu.js" type="text/javascript" charset="utf-8"></script>
   <title>Rutas de interes</title>
<!--[if IE]> <link href="estilos/style_ie.css" rel="stylesheet" type="text/css"> <![endif]-->

</head>
<%
	String archivo = "xml/rutasinteres.xml";
	String usuario = (String) session.getAttribute("usuario");
%>
<body onload = "ocultaSubMenu(); inicializarRutas('<%=archivo%>');" onunload="GUnload()">
	
<jsp:include page="hidden.jsp"/>
	<div id='page_wrapper'>
	
	<jsp:include page="cabecera.jsp"/>
	
	<%if(usuario==null){ %>
		<jsp:include page="menu.jsp"/>
	<%}else{%>
		<jsp:include page="menu_user.jsp"/>
	<%}%>
	<div id='content_wrapper'>
	
	<div class='spacer'></div> 
	<div id = "contenido">
		<% 
		 	mybean.generaFicheroXMLRutas();
		%>
		
		<div id="celdaDivMapa" class="mapuser">
			<div id="map" style="height:400px; width:820px;"></div>
		</div>
		<div id="debug"></div>
	</div>
	
	<div class='spacer' style="padding-bottom: 20px"></div>
	
	</div>
	
	<jsp:include page="pie.html"/>
	
	</div>
	
	</body>
	
	</html>

